public class SOLib extends ArDkLib
ArDkLib.EnumeratePdfTocListener
mDebugTag, SmartOfficeDocErrorType_Aborted, SmartOfficeDocErrorType_EmptyDocument, SmartOfficeDocErrorType_NoError, SmartOfficeDocErrorType_OutOfMemory, SmartOfficeDocErrorType_PasswordRequest, SmartOfficeDocErrorType_UnableToLoadDocument, SmartOfficeDocErrorType_UnsupportedDocumentType, SmartOfficeDocErrorType_UnsupportedEncryption
Modifier and Type | Method and Description |
---|---|
ArDkBitmap |
createBitmap(int w,
int h) |
protected void |
finalize()
Finalizer.
|
void |
finSecureFS() |
int |
getDocTypeFromFileContents(java.lang.String path)
get the doc type from file contents
|
int |
getDocTypeFromFileExtension(java.lang.String path) |
java.lang.String[] |
getFormulae(java.lang.String category) |
java.lang.String[] |
getFormulaeCategories() |
static SOLib |
getLib(android.app.Activity activity)
Get a reference to the SOLib, creating one if there is not one already.
|
java.lang.String[] |
getVersionInfo() |
void |
initSecureFS(SOSecureFS impl)
Register/release the SecureFS implementation
|
int |
installFonts(java.lang.String path)
Native function to set the system font path (usually /system/fonts/).
|
boolean |
isAnimationEnabled() |
boolean |
isDocTypeDoc(java.lang.String path)
get the doc type from its extension
|
boolean |
isDocTypeExcel(java.lang.String path) |
boolean |
isDocTypeImage(java.lang.String path) |
boolean |
isDocTypeOther(java.lang.String path) |
boolean |
isDocTypePdf(java.lang.String path) |
boolean |
isDocTypePowerPoint(java.lang.String path) |
boolean |
isTrackChangesEnabled() |
ArDkDoc |
openDocument(java.lang.String path,
SODocLoadListener listener,
android.content.Context context,
ConfigOptions docCfgOptions)
Load a document.
|
void |
reclaimMemory() |
void |
setAnimationEnabled(boolean enabled) |
void |
setTrackChangesEnabled(boolean enabled) |
clipboardHasText, enumeratePdfToc, getAppConfigOptions, getClipboardHandler, getClipboardText, getSecureFS, isNightMode, putTextToClipboard, runOnUiThread, setAppConfigOptions, setClipboardHandler, setSecureFS
public static SOLib getLib(android.app.Activity activity)
activity
- The current Activity.public void initSecureFS(SOSecureFS impl)
public void finSecureFS()
public boolean isDocTypeDoc(java.lang.String path)
public boolean isDocTypeExcel(java.lang.String path)
public boolean isDocTypePowerPoint(java.lang.String path)
public boolean isDocTypePdf(java.lang.String path)
public boolean isDocTypeImage(java.lang.String path)
public boolean isDocTypeOther(java.lang.String path)
public int getDocTypeFromFileExtension(java.lang.String path)
public int getDocTypeFromFileContents(java.lang.String path)
public ArDkDoc openDocument(java.lang.String path, SODocLoadListener listener, android.content.Context context, ConfigOptions docCfgOptions)
openDocument
in class ArDkLib
path
- The path to the file to load.listener
- SODocLoadListener to monitor progress of doc load.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public int installFonts(java.lang.String path)
public java.lang.String[] getFormulaeCategories()
public java.lang.String[] getFormulae(java.lang.String category)
public java.lang.String[] getVersionInfo()
public boolean isTrackChangesEnabled()
public void setTrackChangesEnabled(boolean enabled)
public boolean isAnimationEnabled()
public void setAnimationEnabled(boolean enabled)
public ArDkBitmap createBitmap(int w, int h)
createBitmap
in class ArDkLib
public void reclaimMemory()
reclaimMemory
in class ArDkLib